#include <iostream>
using namespace std;
int main()
{
	void SelectionSort(int [], int);
	int cards[13] = {7, 5, 1, 2, 3, 6, 8, 11, 9, 12, 10, 4, 13};
	for (int i = 0; i < 13; i++)
	{
	    int min = cards[i], min_id = i;
	    for (int j = i + 1; j < 13; j++)
	        if (cards[j] < min)
	        {
	            min = cards[j];
	            min_id = j;
	        }
	    cards[min_id] = cards[i];
	    cards[i] = min;
	}
	for(int i = 0; i < sizeof(cards)/sizeof(cards[0]); i++)
	{
		cout << cards[i] << " ";
	}
	return 0;
}

